package io.lkt.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.lkt.common.utils.PageUtils;
import io.lkt.commons.dynamic.datasource.annotation.DataSource;
import io.lkt.modules.sys.entity.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public  interface BBrandInfoService extends IService<BBrandInfoEntity> {
    PageUtils queryPage(Map<String, Object> paramMap);

    List<BBrandNameEntity> queryAll(Integer paramInteger);

    BBrandInfoEntity queryByName(String paramString);

    BBrandInfoEntity queryNameById(@Param("id") Integer id);

    BBrandInfoEntity queryTempByName(String paramString);

    int addBrandAndType(Map<String, Object> paramMap);

    int upType(Map<String, Object> paramMap);

    List<BBrandInfoEntity> typeByBrandId(Integer paramInteger);

    Integer queryByAlias(@Param("brandName") String paramString);

    List<Integer> queryByNameLike(@Param("brandName") String brandName);

    int delBrandAndType(Integer paramInteger);

    int delsupply(Integer paramInteger);

    @Override
    @DataSource("master")
    BBrandInfoEntity getById(Serializable id);

    @Override
    @DataSource("master")
    boolean save(BBrandInfoEntity entity);

    @Override
    @DataSource("master")
    boolean updateById(BBrandInfoEntity entity);

    List<BBrandVitalEntity> queryVital(Map<String, Object> map);

    Integer queryVitelTotal(Map<String, Object> map);

    /**
     * 大分类信息
     *
     * @return
     */
    List<BBrandCategoryEntity> getAllCategory();

    int updateBrandAlias(BBrandInfoEntity brandInfo);
}
